package com.example.upload.service.impl;

import com.example.upload.service.VideoParseService;
import com.example.upload.utils.PythonExecutor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * VideoToAudioServiceImpl
 *
 * @author ChenJiaGeng
 * @date 2024/11/2 22:38
 * @since 1.0.0
 */
@Service
public class VideoParseServiceImpl implements VideoParseService {

    @Autowired
    private PythonExecutor pythonExecutor;

    @Override
    public String downLoadVideo(String videoUrl) {

        return pythonExecutor.executeScript(videoUrl);
    }
}
